package com.zhou.basics.common.core;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ProjectName: tsqingcheng
 * @ClassName: ResultPage
 * @Time: 2020/2/28
 * @Author: zhou24
 * @Description:
 * @Experience:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResultPage<T> {
    private Long count;
    private List<T> list;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
